<!--{template header}-->

<nav class="bread-nav">
  <div class="container">
    <ol class="breadcrumb">
      <li>您的位置：</li>
          <li><a href="index.php?do=index">首页</a></li>
          <li><a href="index.php?do=case">成功案例</a></li>
      </ol>
  </div>
</nav>
<!-- 面包屑end -->

<div class="container">

<div id="case-main">
  <!-- <div class="tab tab-darken">
    <a href="index.php?do=case" class="selected">所有案例</a>
  </div> -->
  <!-- tab end -->


    {if $i||$ky}

    <ul class="nav nav-pills second-nav">
      {if $i}<li class="active"><a href="{$strUrl}&i=0">{$arrIndusInfo['indus_name']} <i class="fa fa-times"></i></a></li>{/if}
      {if $ky}<li class="active"><a href="{$strUrl}&ky=0">{$ky} <i class="fa fa-times"></i></a></li>{/if}
      <li>共<!--{eval echo intval($intCount);}-->条类似任务</li>
    </ul>


  {/if}
  <!-- second-nav end -->

  <!-- 服务商列表 -->
  <ul class="list-filter case-list-filter">
      <li>
          <label class="col-xs-1">案例种类</label>
          <div class="col-xs-11 condition">
              <a href="{$strUrl}&t=0" {if !$t}class="selected"{/if}>全部</a>
              <a href="{$strUrl}&t=1" {if $t==1}class="selected"{/if}>任务案例</a>
              <a href="{$strUrl}&t=2" {if $t==2}class="selected"{/if}>商品案例</a>
          </div>
      </li>
      {if $t==1}
      <li>
      <label class="col-xs-1">任务模式</label>
        <div class="col-xs-11 condition">
            <a href="{$strUrl}&m=0" {if !$m} class="selected" {/if}>全部</a>
          {loop $arrTaskNav $k $v}
          <a href="{$strUrl}&m={$v['model_id']}" {if $v['model_id'] == $m} class="selected" {/if}>$v['model_name']</a>
          {/loop}
        </div>
       </li>
      {/if}
      {if $t==2}
      <li>
          <label class="col-xs-1">商品种类</label>
          <div class="col-xs-11 condition">
              <a href="{$strUrl}&s=0" {if !$s} class="selected" {/if}>全部</a>
              {loop $arrServerNav $k $v}
              <a href="{$strUrl}&s={$v['model_id']}" {if $v['model_id'] == $s} class="selected" {/if}>$v['model_name']</a>
              {/loop}
          </div>
      </li>
      {/if}


  </ul>
  <!-- filter end -->
  {if IS_MOBILE}
    {if $arrCaseLists}
    <div class="list list-img">
      <ul class="list-body">
      {loop $arrCaseLists $k $v}
        <li class="list-item">
          <!-- 标签中标 -->
          <span class="tag-r">{$v['label']}</span>
          <span class="label-r"></span>
          <!-- 标签中标 end-->

          <!-- 标签企业 -->
         <!--  <span class="tag-l"><img src="tpl/default/img/case-firm.gif" alt=""></span> -->
          <!-- 标签企业 end-->
          <a href="{$v['objurl']}" class="list-title" title="{$v['case_title']}">
             {$v['case_title']}
            </a>
            <div class="list-item-img">
              <a href="{$v['objurl']}" title="{$v['case_title']}">
                <img  alt="{$v['case_title']}"  class="lazy" src="{$v['case_img']}"  data-original="<!--{eval echo keke_shop_class::output_pics($v['case_img'],210,1);}-->">
              </a>
            </div>
            <div class="list-item-footer">
              <p>
                价格：<span class="money">￥{$v['case_price']}</span>
              </p>
              <p>
               收藏：{$v['focus_num']}
              </p>
              <p>
                {$v['text']}：{$v['num']} {$v['quantifier']}
              </p>
              <p>
               {$v['from']}：<a href="{$v['fromurl']}" class="case-users">{$v['username']}</a>
              </p>
              <a href="{$v['objurl']}" class="btn btn-primary">查看该案例</a>
            </div>
         </li>
      {/loop}
      </ul>
    </div>
      {else}
       <dd class="list-item text-center">
        <!--{template nodata}-->
         </dd>
    {/if}
    <!-- list list-img  end-->
  {else}
    {if $arrCaseLists}
    <div class="list list-img case-list">
      <ul class="list-body">
      {loop $arrCaseLists $k $v}
        <li class="list-item case-list-item">
          <div class="case-list-img">
            <a href="{$v['objurl']}" title="{$v['case_title']}">
              <img  alt="{$v['case_title']}"  class="case-pic" src="{$v['case_img']}"  data-original="{eval echo keke_shop_class::output_pics($v['case_img'],210,1);}"           
            </a>
            <div class="case-list-detailBox">
              <!-- <p>{$v['case_title']}</p> -->
              <p>价格：<span class="money">￥{$v['case_price']}</span></p>
              <p><span class="case-collect">收藏：{$v['focus_num']}</span><span>{$v['text']}：{$v['num']} {$v['quantifier']}</span></p>
              <p>{$v['from']}：<a href="{$v['fromurl']}" class="case-users">{$v['username']}</a></p>
              <!-- <p class="case-lookBtn"><a href="{$v['objurl']}" class="btn btn-primary btn-block">查看该案例</a></p> -->                   
            </div>           
          </div>
          <div class="case-list-title"><span class="marked marked-case">{$v['label']}</span>{$v['case_title']}</div>
         </li>
      {/loop}
      </ul>
    </div>
    {else}
      <dd class="list-item text-center">
        <!--{template nodata}-->
      </dd>
    {/if}
    <!-- list list-img  end-->
  {/if}


  <div class="list-page case-list-page">
    <div class="page-tips pull-left">
      显示 {$strPages['st']}~{$strPages['en']} 项 共 {$intCount} 个案例
    </div>
    <ul class="pagination pagination-sm pull-right">
        {$strPages['page']}
    </ul>
  </div>
  <!-- 商品列表 & list-page end -->
</div>
<!-- #main end -->

</div>
<!-- container end -->

</body>
<!--{template footer}-->
<script type="text/javascript">
  $(".case-list-img").hover(function(){
    $(this).children('.case-list-detailBox').show(500);

  },
  function(){
    $(this).children('.case-list-detailBox').hide();
  })
</script>
